import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import net.miginfocom.swing.*;
/*
 * Created by JFormDesigner on Mon Dec 16 01:45:48 CST 2024
 */



/**
 * @author jjchen
 */
public class MF_findBookRecord_Home extends JFrame {
    public MF_findBookRecord_Home() {
        initComponents();
    }

    private void button4MouseClicked(MouseEvent e) {
        this.dispose();
        this.setVisible(false);
        manager_Home mb = new manager_Home();
        mb.setVisible(true);
    }

    private void button2MouseClicked(MouseEvent e) {
        this.dispose();
        this.setVisible(false);
        MF_findBookRecord_inuser_notreturn mb = new MF_findBookRecord_inuser_notreturn();
        mb.setVisible(true);
    }

    private void button1MouseClicked(MouseEvent e) {
        this.dispose();
        this.setVisible(false);
        MF_findBookRecord_inuser mb = new MF_findBookRecord_inuser();
        mb.setVisible(true);
    }

    private void button3MouseClicked(MouseEvent e) {
        this.dispose();
        this.setVisible(false);
        MF_bookfind_manager_findbookbyidtitle mb = new MF_bookfind_manager_findbookbyidtitle();
        mb.setVisible(true);

    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        label2 = new JLabel();
        button1 = new JButton();
        button2 = new JButton();
        button3 = new JButton();
        button4 = new JButton();

        //======== this ========
        var contentPane = getContentPane();
        contentPane.setLayout(new MigLayout(
            "hidemode 3",
            // columns
            "[fill]" +
            "[fill]" +
            "[fill]" +
            "[fill]" +
            "[fill]" +
            "[fill]" +
            "[fill]" +
            "[fill]" +
            "[fill]" +
            "[fill]" +
            "[fill]",
            // rows
            "[]" +
            "[]" +
            "[]" +
            "[]" +
            "[]" +
            "[]" +
            "[]" +
            "[]" +
            "[]"));

        //---- label2 ----
        label2.setText("\u56fe\u4e66\u501f\u9605\u8bb0\u5f55");
        label2.setFont(label2.getFont().deriveFont(label2.getFont().getStyle() | Font.BOLD, label2.getFont().getSize() + 4f));
        contentPane.add(label2, "cell 5 1");

        //---- button1 ----
        button1.setText("\u67e5\u8be2\u501f\u9605\u8bb0\u5f55");
        button1.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                button1MouseClicked(e);
            }
        });
        contentPane.add(button1, "cell 1 3");

        //---- button2 ----
        button2.setText("\u67e5\u8be2\u7528\u6237\u672a\u8fd8\u56fe\u4e66");
        button2.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                button2MouseClicked(e);
            }
        });
        contentPane.add(button2, "cell 1 4");

        //---- button3 ----
        button3.setText("\u67e5\u8be2\u56fe\u4e66\u501f\u9605\u60c5\u51b5");
        button3.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                button3MouseClicked(e);
            }
        });
        contentPane.add(button3, "cell 1 5");

        //---- button4 ----
        button4.setText("\u8fd4\u56de");
        button4.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                button4MouseClicked(e);
            }
        });
        contentPane.add(button4, "cell 10 8");
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JLabel label2;
    private JButton button1;
    private JButton button2;
    private JButton button3;
    private JButton button4;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
